package com.yycx.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 药品配置
 *
 * @author flyme
 * @date 2020-08-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_supplier_rate")
@TableAlias("bsr")
@ApiModel(value = "BusDrugsConfig对象", description = "供货方费率配置")
public class BusSupplierRate extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "supplierRateId", type = IdType.ASSIGN_ID)
    private Long supplierRateId;

    @ApiModelProperty(value = "药品ID")
    private Long drugsId;

    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

    @ApiModelProperty(value = "垫付款费率")
    private BigDecimal supplierTaxRate;

    @ApiModelProperty(value = "供货方结算费率")
    private BigDecimal supplierSettleRate;


    @ApiModelProperty(value = "供货方返款公式")
    private Long refundFormulaId;

    @ApiModelProperty(value = "供货方高开税金公式")
    private Long highTaxRateFormulaId;

    @ApiModelProperty(value = "开始日期")
    private Date beginDate;

    @ApiModelProperty(value = "结束日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date endDate;

    @ApiModelProperty(value = "状态")
    private Integer configState;

}
